/* Exercise 5.45
   ejer5_45.c */
#include <stdio.h>
#include <math.h>

/* function main begins program execution */
int main( void )
{
    printf("sqrt(400)\t:\t%0.2f\n", sqrt(400.0));
    printf("sqrt(9)\t:\t%0.2f\n", sqrt(9.0));

    printf("exp(1.0)\t:\t%0.2f\n", exp(1.0));
    printf("exp(2.0)\t:\t%0.2f\n", exp(2.0));

    printf("log(2.718282)\t:\t%0.2f\n", log(2.718282));
    printf("log(7.389056)\t:\t%0.2f\n", log(7.389056));

    printf("log10(1.0)\t:\t%0.2f\n", log10(1.0));
    printf("log10(10.0)\t:\t%0.2f\n", log10(10.0));
    printf("log10(100.0)\t:\t%0.2f\n", log10(100.0));

    printf("fabs(13.5)\t:\t%0.2f\n", fabs(13.5));
    printf("fabs(0.0)\t:\t%0.2f\n", fabs(0.0));
    printf("fabs(-13.5)\t:\t%0.2f\n", fabs(-13.5));

    printf("ceil(9.2)\t:\t%0.2f\n", ceil(9.2));
    printf("ceil(-9.8)\t:\t%0.2f\n", ceil(-9.8));

    printf("floor(9.2)\t:\t%0.2f\n", floor(9.2));
    printf("floor(-9.8)\t:\t%0.2f\n", floor(-9.8));

    printf("pow(2, 7)\t:\t%0.2f\n", pow(2, 7));
    printf("pow(9, .5)\t:\t%0.2f\n", pow(9, .5));

    printf("fmod(13.657, 2.333)\t:\t%0.2f\n", fmod(13.657, 2.333));

    printf("sin(0.0)\t:\t%0.2f\n", sin(0.0));
    printf("cos(0.0)\t:\t%0.2f\n", cos(0.0));
    printf("tan(0.0)\t:\t%0.2f\n", tan(0.0));

	return 0; /* indicate that program ended successfully */
} /* end function main */
